home *** CD-ROM | disk | FTP | other *** search
/ Champak 109 / Vol 109.iso / games / let_it_f.swf / scripts / DefineSprite_769 / frame_1 / DoAction.as
Text File  |  2008-11-12  |  508b  |  19 lines

  1. stop();
  2. count = 0;
  3. maxcount = Math.round(_root.starttimer / 10) * 24;
  4. this.onEnterFrame = function()
  5. {
  6.    if(_root.watering_plants._currentframe == 1)
  7.    {
  8.       if(this == _root["c" + _root.corntouse] && c <= 10 && (_root.wait != true || _root.wait == true && _root.waterismoving == true))
  9.       {
  10.          count++;
  11.          gotoAndStop(Math.round(count / maxcount * 200));
  12.       }
  13.       else if(_currentframe > 1 && _currentframe < 200)
  14.       {
  15.          gotoAndPlay(200);
  16.       }
  17.    }
  18. };
  19.